                <div class="body_right">
                    <div class="slideshow">
                        <?php $this->load->view('main_slideshow'); ?>
                    </div>
                    <div class="prim_inf">
                        <div class="main_article">
                            <span class="main_article_title">
                                <?php if($this->session->userdata('barangay_id') == '' || $this->session->userdata('barangay_id') == null) { ?>
                                What is OurBarangay.com?
                                <?php } else { ?>
                                Welcome to Barangay <?php echo $this->session->userdata('barangay');?>, <?php echo $this->session->userdata('municipality');?>, <?php echo $this->session->userdata('province');?>
                                <?php } ?>
                            </span>
                            <hr/>
                            <span class="main_article_content brgy_desc">
                                <?php if($this->session->userdata('barangay_id') == '' || $this->session->userdata('barangay_id') == null) { ?>
                                <p>
                                   Lorem dolor ipsum. Lorem dolor ipsum. Lorem dolor ipsum. 
                                   Lorem dolor ipsum. Lorem dolor ipsum. Lorem dolor ipsum. 
                                   Lorem dolor ipsum. Lorem dolor ipsum. Lorem dolor ipsum. 
                                   Lorem dolor ipsum. Lorem dolor ipsum. Lorem dolor ipsum. 
                                </p>
                                <p>
                                   Lorem dolor ipsum. Lorem dolor ipsum. Lorem dolor ipsum. 
                                   Lorem dolor ipsum. Lorem dolor ipsum. Lorem dolor ipsum. 
                                   Lorem dolor ipsum. Lorem dolor ipsum. Lorem dolor ipsum. 
                                   Lorem dolor ipsum. Lorem dolor ipsum. Lorem dolor ipsum. 
                                </p><p>
                                   Lorem dolor ipsum. Lorem dolor ipsum. Lorem dolor ipsum. 
                                   Lorem dolor ipsum. Lorem dolor ipsum. Lorem dolor ipsum. 
                                   Lorem dolor ipsum. Lorem dolor ipsum. Lorem dolor ipsum. 
                                   Lorem dolor ipsum. Lorem dolor ipsum. Lorem dolor ipsum. 
                                </p>
                                <?php } ?>
                            </span>
                            <?php if($this->session->userdata('barangay_id') == '' || $this->session->userdata('barangay_id') == null) { ?>
                            <span class="main_article_title">
                                How to acquire a barangay website from OurBarangay.com?
                            </span>
                            <hr />
                            <span class="main_article_content">
                                <p>
                                    Processes involved in getting a barangay website
                                </p>
                            </span>
                            <?php } ?>
                        </div>
                    </div>
                    <div class="body_quick_links">
                        <div>
                            <span class="main_article_title">
                                    Quick Links
                            </span>
                            <hr />
                        </div>
                        <div class="body_q_l_box">
                            <div class="body_q_l_box_con">
                                <span>Latest News</span><br />
                                <?php 
                                    if(count($index_news) == 0) {
                                        print "There are no news posted yet.";
                                    } else {
                                        foreach($index_news as $row) {
                                ?>
                                <a href="<?php echo base_url() . 'index.php/news/macroView?news_id=' . $row->news_id; ?>"><?php echo $row->title; ?></a><br />
                                <?php            
                                        }
                                    }
                                ?>
                            </div>
                        </div>
                        <div class="body_q_l_box">
                            <div class="body_q_l_box_con">
                                <?php if($this->session->userdata('barangay_id') != '' || $this->session->userdata('barangay_id') != null) { ?>
                                <span>Newest Products</span><br />
                                <?php 
                                    if(count($top_products) == 0) {
                                        print "There are no products yet.";
                                    } else {
                                        foreach($top_products as $row) {
                                ?>
                                <a href=""><?php echo $row->product_name; ?></a>
                                <?php            
                                        }
                                    }
                                ?>
                                <?php } else { ?>
                                <span>New Joiners</span><br />
                                <?php 
                                    if(count($index_news) == 0) {
                                        print "There are no barangays approved yet.";
                                    } else {
                                        foreach($index_brgys as $row) {
                                ?>
                                <a href="<?php echo base_url() . 'index.php/authenticate/viewsite?brgy_id=' . $row->brgy_id; ?>">Barangay <?php echo $row->brgy_name . ', ' . $row->mun_name . ', ' . $row->prov_name; ?></a><br />
                                <?php            
                                        }
                                    }
                                ?>
                                <?php } ?>
                            </div>
                        </div>
                    </div>
                </div>